import request from '@/utils/request'

// 查询产品类型列表
export function listPatent(query) {
  return request({
    url: '/company/patent/list',
    method: 'get',
    params: query
  })
}


// 查询产品类型详细
export function getPatent(id) {
  return request({
    url: '/company/patent/' + id,
    method: 'get'
  })
}

// 新增产品类型
export function addPatent(data) {
  return request({
    url: '/company/patent',
    method: 'post',
    data: data
  })
}

// 修改产品类型
export function updatePatent(data) {
  return request({
    url: '/company/patent',
    method: 'put',
    data: data
  })
}

// 删除视频
export function delPatent(id) {
  return request({
    url: '/company/patent/' + id,
    method: 'delete'
  })
}

// 专利图片上传
export function uploadFileImg(data) {
  return request({
    url: '/company/patent/file/upload',
    method: 'post',
    data: data
  })
}
